/*
 * @Author: wuyuxin
 * @Date: 2024-06-25 23:00:08
 * @LastEditors: wuyuxin
 * @LastEditTime: 2024-06-26 15:27:27
 * @Description:
 */
import yxRequest from '..'
import type { IAccount } from '@/types'

export function accountLoginRequest(account: IAccount) {
  return yxRequest.post({
    url: '/login',
    data: account
  })
}

export function getUserInfoById(id: number) {
  return yxRequest.get({
    url: `/users/${id}`
  })
}

export function getUserMenusByRoleId(id: number) {
  return yxRequest.get({
    url: `/role/${id}/menu`
  })
}
